<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@tag import="net.tanesha.recaptcha.ReCaptcha"%>
<%@tag import="net.tanesha.recaptcha.ReCaptchaFactory"%>
<%@tag import="fr.resasante.utils.PropertiesUtils"%>
<%@tag import="java.util.Properties"%>
<div class="formBigColumn">
 <div class="formLabel">
  <label for="recaptcha_response_field" class="mandatory"><spring:message
    code="label.recaptcha" /> <span class="redStar">*</span></label>
 </div>
 <div class="formBigField">
  <%
  	String privateKey = PropertiesUtils.getInstance().getProperty(
  			"recaptcha.private.key");
  	String publicKey = PropertiesUtils.getInstance().getProperty(
  			"recaptcha.public.key");
  	ReCaptcha c = ReCaptchaFactory.newReCaptcha(publicKey, privateKey, false);
  	Properties properties = new Properties();
  	properties.put("theme", "clean");
  	out.print(c.createRecaptchaHtml(null, properties));
  %>
 </div>
</div>